package com.own.component.log.login.core.impl;

import com.own.component.log.login.core.BaseLastLoginTimeMethod;
import com.own.component.log.login.entity.LogLoginEntity;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Component;

/**
 * BaseLastLoginTimeMethodNoneImpl
 *
 * @author chenxueli
 * @date 2024-03-13 09:00:00
 */
@Component
@ConditionalOnMissingBean(name = "baseLastLoginTimeMethod")
public class BaseLastLoginTimeMethodNoneImpl implements BaseLastLoginTimeMethod {

    /**
     * 根据用户id查询最后一次成功的登录日志信息
     *
     * @param userId 用户id
     * @return 最后一次成功的登录日志信息
     */
    @Override
    public LogLoginEntity lastLoginTime(Long userId) {
        return LogLoginEntity.NONE;
    }

}
